﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;

namespace RobotBattle2.Scripting {
	public class VariableExpression : Expression {
		public VariableExpression() { }
		public VariableExpression(SymbolReference symbol) {
			this.Symbol = symbol;
		}

		public SymbolReference Symbol { get; set; }

		public override void Dump(IndentedTextWriter writer) {
			Symbol.Dump(writer);
		}

		public override ExpressionType Type { get { return ExpressionType.Variable; } }
	}
}
